package com.das.mechanic_alone.mvp.contract.alone;

import com.das.mechanic_base.base.X3IBaseView;
import com.das.mechanic_base.bean.alone.NewServiceHeaderBean;
import com.das.mechanic_base.bean.greendao.AloneServiceListBean;

import java.util.List;

public interface X3WebAloneServiceContract {
    interface View extends X3IBaseView {

        long providerWorkBaseId();

        void getServiceInfo(NewServiceHeaderBean bean, boolean isJump);

        /**
         * 获取购物车网络数据
         * @param mList
         */
//        void getServiceList(List<AloneServiceListBean> mList);

        void searchAloneCache();

        void saveCarMaintenancePlanSus();

    }

    interface Presenter {

        /**
         * 获取一级类目 二级类目 + 服务项目
         * @param map
         */
        void getServiceBaseInfo(long carId, boolean isJump);

        /**
         * 获取购物车数据
         */
        void getDetectionServiceList();

        /**
         * 更改购物车数据的时候 更新后台数据
         */
        void saveDetectionService(List<AloneServiceListBean> mList);

        void saveCarMaintenancePlan(NewServiceHeaderBean bean);
    }
}
